package org.lhh.server.config.ehcache;

import net.sf.ehcache.CacheManager;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.util.ClassUtils;

@Configuration
public class EhcacheConfig {

    @Bean
    public CacheManager cacheManager() {
        Resource resource = new ClassPathResource("config/ehcache.xml");
        return CacheManager.create(resource.getInputStream());
    }

}
